package com.bootssm.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @className: TimeUtil
 * @description: TODO 类描述
 * @author: Mr.Song
 * @date: 2023/07/10 14:42
 **/
public class TimeUtil {

    public static String getCurrentTime(Date date){
       //时间转换类
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");

       //转换成String类型的时间
        String time = sdf.format(date);

        return time;


    }
}
